//
//  titleView.h
//  集成ReactNative
//
//  Created by Admin on 2017/3/6.
//  Copyright © 2017年 Admin. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol titleViewDelegate <NSObject>

@required

- (void)titleViewSelectedIndex:(NSInteger)selectedIndex;

@end

@interface titleView : UIView
- (instancetype)initWithFrame:(CGRect)frame titles:(NSArray *)titles;
- (void)setTitleWithProgress:(CGFloat)progress sourceIndex:(NSInteger)sourceIndex targetIndex:(NSInteger)targetIndex;
@property (nonatomic,weak) id <titleViewDelegate> delegate;
@end
